package hu.bme.mit.inf.expendables.restservices;

import javax.ws.rs.*;
import javax.ws.rs.core.*;

import com.sun.jersey.multipart.FormDataParam;

@Path("/customerappmanagement")
public interface ICustomerAppManagementService {
	
	@GET
	@Path("/viewownedapps")
	@Produces(MediaType.TEXT_PLAIN)
	public Response viewOwnedApps(@QueryParam("userid") long userId);
	
	
	@GET
	@Path("/downloadownedapp")
	@Produces(MediaType.WILDCARD)
	public Response downloadOwnedApp(@QueryParam("userid") long userId, @QueryParam("appmetadataid") long appMetadataId);
	
	
	@POST
	@Path("/buyapp")
	@Produces(MediaType.TEXT_PLAIN)
	public Response buyApp(@FormParam("userid") long userId, @FormParam("appmetadataid") long appMetadataId);
	
}
